summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/btm/btm_user.cpp
blob: 0c3b412085f330059a55c6e2ba0a07279da56258 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#include "common/logging/log.h"
#include "core/hle/service/btm/btm_user.h"
#include "core/hle/service/btm/btm_user_core.h"
#include "core/hle/service/cmif_serialization.h"
#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/service.h"

namespace Service::BTM {

IBtmUser::IBtmUser(Core::System& system_) : ServiceFramework{system_, "btm:u"} {
    // clang-format off
        static const FunctionInfo functions[] = {
            {0, C<&IBtmUser::GetCore>, "GetCore"},
        };
    // clang-format on

    RegisterHandlers(functions);
}

IBtmUser::~IBtmUser() = default;

Result IBtmUser::GetCore(OutInterface<IBtmUserCore> out_interface) {
    LOG_WARNING(Service_BTM, "called");

    *out_interface = std::make_shared<IBtmUserCore>(system);
    R_SUCCEED();
}

} // namespace Service::BTM